Color cycling
Color cycling, also known as palette shifting, is a technique used in computer graphics in which colors are changed in order to give the impression of animation. This technique was mainly used in early computer games, as storing one image and changing its palette required less memory and processor power than storing the animation as several frames.
Examples of use
- The famous Amiga Boing Ball cycled the ball's checkerboard pattern between red and white to create the illusion of the ball rotating.
- SimCity 2000 made extensive use of this technique: every building with animation had its animation provided by color cycling. This was used to provide effects such as blinking lights, cars moving on roads, and even four frames of animation displaying on a tiny movie screen in a drive-in theater.
- A gallery featuring the color cycling effect through HTML 5 also shows how this effect is produced.
External links
Rainbow: C/C++ Version